//
//  NWMesTableViewController.swift
//  微博01
//
//  Created by 牛威 on 15/12/5.
//  Copyright © 2015年 牛威. All rights reserved.
//

import UIKit

class NWMesTableViewController: NWVisitorTableViewController {

    
    
    //MARK: - nav按钮的监听方法
    
       @objc  private func discover(){
        
        print("discover")
        
    }
    
       @objc  private func more(){
        
        print("more")
        
    }
    
    

    override func viewDidLoad() {
        super.viewDidLoad()
        
        
        if !UserAccountViewModel.sharedAccount.isLogin {
            
          visitorView?.setVisitorViewInfo("visitordiscover_image_message", message: "也许时间是一种解药，也是我现在所服下的毒药")
            
            return
        }
        
        setupUI()
        
        
    }
    
    private func setupUI(){
    
    
        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "发现群", style: .Plain, target: self, action: "discover")
        
        
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(imageName: "navigationbar_more", target: self, action: "more")
        
    
    }


}
